import service from '@/utils/crmRequest'

export default () => ({
// 列表
  MYDEALWITH_LIST: (data) => {
    return service({
      url: '/api/workFlow/toDoTask',
      method: 'post',
      data
    })
  },
  MYDEALWITH_LISTD: (data) => {
    return service({
      url: 'api/workFlow/endTask',
      method: 'post',
      data
    })
  },
  MYSTARTED_DETAIL: (processInstanceId) => {
    return service({
      url: '/api/workFlow/taskHistory?processInstanceId=' + processInstanceId,
      method: 'get',
    })
  },
  YSTARTED_WORKFLOW: (id) => {
    return service({
      url: `/api/workFlow/xml?id=${id}`,
      method: 'get',
    })
  },

})

